home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ANMFORMT.ZIP / SHOWANIM.H < prev   
Text File  |  1991-04-18  |  2KB  |  70 lines

  1. /* structure declarations for deluxe animate large page files */
  2.  
  3.  
  4. typedef struct {
  5.  
  6.  ULONG id;        /* 4 character ID == "LPF " */
  7.  
  8.  UWORD maxLps;        /* max # largePages allowed. 256 FOR NOW.   */
  9.  
  10.  UWORD nLps;        /* # largePages in this file. */
  11.  
  12.  ULONG nRecords;    /* # records in this file.  65534 is current limit plus */
  13.             /* one for last-to-first delta for looping the animation */
  14.  
  15.  UWORD maxRecsPerLp;    /* # records permitted in an lp. 256 FOR NOW.   */
  16.  
  17.  UWORD lpfTableOffset;    /* Absolute Seek position of lpfTable.  1280 FOR NOW.
  18.             The lpf Table is an array of 256 large page structures
  19.             that is used to facilitate finding records in an anim
  20.             file without having to seek through all of the Large
  21.              Pages to find which one a specific record lives in. */
  22.  
  23.  ULONG contentType;    /* 4 character ID == "ANIM" */
  24.  
  25.  UWORD width;        /* Width of screen in pixels. */
  26.  UWORD height;        /* Height of screen in pixels. */
  27.  UBYTE variant;    /*     0==ANIM. */
  28.  UBYTE version;    /*     0==frame rate is multiple of 18 cycles/sec.
  29.              1==frame rate is multiple of 70 cycles/sec.  */
  30.  
  31.  UBYTE hasLastDelta;    /* 1==Last record is a delta from last-to-first frame. */
  32.  
  33.  UBYTE lastDeltaValid;    /* 0==The last-to-first delta (if present) hasn't been
  34.             updated to match the current first&last frames,    so it
  35.              should be ignored. */
  36.  
  37.  UBYTE pixelType;    /* 0==256 color. */
  38.  
  39.  UBYTE CompressionType;    /* 1==(RunSkipDump) Only one used FOR NOW. */
  40.  
  41.  UBYTE otherRecsPerFrm;    /* 0 FOR NOW. */
  42.  
  43.  UBYTE bitmaptype;  /*     1==320x200, 256-color.  Only one implemented so far. */
  44.  
  45.  UBYTE recordTypes[32];    /* Not yet implemented. */
  46.  
  47.  ULONG nFrames;     /*     In case future version adds other records at end of 
  48.             file, we still know how many actual frames.
  49.              NOTE: DOES include last-to-first delta when present. */
  50.  
  51.  UWORD framesPerSecond;    /* Number of frames to play per second. */
  52.  
  53.  UWORD pad2[29];    /* 58 bytes of filler to round up to 128 bytes total. */
  54. } lpfileheader;
  55.  
  56.  
  57. /* this is the format of an large page structure */
  58. typedef struct {
  59.  UWORD baseRecord;    /* Number of first record in this large page. */
  60.  
  61.  UWORD nRecords;    /* Number of records in lp.
  62.                         bit 15 of "nRecords" == "has continuation from previous lp".
  63.                         bit 14 of "nRecords" == "final record continues on next lp". */
  64.  
  65.  UWORD nBytes;        /* Total number of bytes of contents, excluding header. */
  66.  
  67. } lp_descriptor;
  68.  
  69.  
  70.